class Settings:
    """存储游戏中所有设置的类"""

    def __init__(self):
        """初始化游戏的设置"""
        # 屏幕宽高
        self.screen_width = 1200
        self.screen_height = 800
        # 窗口背景颜色
        self.bg_color = (230, 230, 230)
        # 我的飞机设置
        self.my_plane_move_speed = 4
        self.my_plane_limit = 3
        # 子弹设置
        self.bullet_speed = 10.0
        self.bullet_allowed = 5
        # 敌人设置
        self.enemy_speed = 1.0
        self.fleet_drop_speed = 30
        # fleet_direction为1表示向右移动，为-1表示向左移动
        self.fleet_direction = 1
